package com.me.shardingdemo.config.util;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

public class Condition {

	/**
	 * 获取mybatis plus中的QueryWrapper
	 *
	 * @param entity 实体
	 * @param <T>    类型
	 * @return QueryWrapper
	 */
	public static <T> QueryWrapper<T> getQueryWrapper(T entity) {
		return new QueryWrapper<>(entity);
	}





}